
#ifndef __TILED_TMXLAYER_H__
#define __TILED_TMXLAYER_H__

#include <map>
#include "2d/CCSprite.h"
#include "base/CCValue.h"
#include "TiledParser.h"
#include "renderer/CCPrimitiveCommand.h"
#include "renderer/CCPrimitive.h"
#include "base/CCMap.h"
#include "renderer/CCTexture2D.h"

USING_NS_CC;

class TmxMapInfo;

namespace Tiled{

class TmxLayer : public Node
{
public:
    /** creates a FastTMXLayer with an tileset info, a layer info and a map info */
    static TmxLayer * create(TmxLayerInfo *layerInfo, TmxMapInfo *mapInfo);

    TmxLayer();

    virtual ~TmxLayer();
	std::string getLayerName();

private:
	bool initWithTilesetInfo(TmxLayerInfo *layerInfo, TmxMapInfo *mapInfo);

	TmxLayerInfo* _layerInfo;
};

// end of tilemap_parallax_nodes group
/// @}
} //end of namespace experimental

#endif //__TILED_TMXLAYER_H__
